package com.eks.order.api.impl;

import com.eks.order.api.OrderApi;
import com.eks.order.api.domain.OrderDomain;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

/**
 * OrderApiImpl
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2020-06-03 14:43
 * @blame Team
 */
@Slf4j
@Service(version = "1.0.0")
public class OrderApiImpl implements OrderApi {

    @Override
    public String getOrderCode() {
        return "order-code";
    }

    @Override
    public String saveOrder(OrderDomain orderDomain){
        log.info("saveOrder: {}", orderDomain);
        return orderDomain.getOrderCode();
    }
}
